﻿using System;
using System.ComponentModel;

namespace XamlMvp
{
    [TypeConverter(typeof(PresenterBindingTypeConverter))]
    public class PresenterBinding : IPresenterBinding
    {
        readonly Type runtimeType;

        public bool IsBound { get { return runtimeType != null; } }
        public PresenterBinding(Type runtimeType)
        {
            this.runtimeType = runtimeType;
        }

        public Type RuntimeType { get { return runtimeType; } }
    }
}
